/**
 * @param {string} s
 * @return {number}
 */
var strangePrinter = function (s) {
  let set = new Set()
  let str = s[0].repeat(s.length),left=1
  let count = 1,right=left
  set.add(s[0])
  while(left<s.length){
    if(s[right]!=s[right-1]){
 
      right++
    }else{
      left++
      right++
    }
  }
  return count
}
